package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 查看内容对象 xg_classroom_content
 * 
 * @author coderChen
 * @date 2024-01-09
 */
public class ClassroomContent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Excel(name = "序号")
    private Long id;

    /** 主题 */
    @Excel(name = "主题")
    private String contentTheme;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 上传教师 */
    @Excel(name = "上传教师")
    private String uploadTeacher;

    /** 状态（审核通过、审核不通过、审核中） */
    @Excel(name = "状态", readConverterExp = "审核通过、审核不通过、审核中")
    private String contentStatus;

    /** 内容评价（优秀、良好、合格） */
    @Excel(name = "内容评价", readConverterExp = "优=秀、良好、合格")
    private String contentEvaluate;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadedTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setContentTheme(String contentTheme) 
    {
        this.contentTheme = contentTheme;
    }

    public String getContentTheme() 
    {
        return contentTheme;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setUploadTeacher(String uploadTeacher) 
    {
        this.uploadTeacher = uploadTeacher;
    }

    public String getUploadTeacher() 
    {
        return uploadTeacher;
    }
    public void setContentStatus(String contentStatus) 
    {
        this.contentStatus = contentStatus;
    }

    public String getContentStatus() 
    {
        if (contentStatus == null) {
            return "待审核";
        } else {
            return contentStatus;
        }
    }
    public void setContentEvaluate(String contentEvaluate) 
    {
        this.contentEvaluate = contentEvaluate;
    }

    public String getContentEvaluate() 
    {
        if( contentEvaluate == null){
            return "待评价";
        }else{
            return contentEvaluate;
        }

    }
    public void setUploadedTime(Date uploadedTime) 
    {
        this.uploadedTime = uploadedTime;
    }

    public Date getUploadedTime() 
    {
        return uploadedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contentTheme", getContentTheme())
            .append("content", getContent())
            .append("uploadTeacher", getUploadTeacher())
            .append("contentStatus", getContentStatus())
            .append("contentEvaluate", getContentEvaluate())
            .append("uploadedTime", getUploadedTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
